#/bin/bash
curPath=$(readlink -f "$(dirname "$0")")
cd $curPath
echo $curPath
export LD_LIBRARY_PATH="$curPath":$LD_LIBRARY_PATH
pid=`ps -ef | grep -E -w 'ffmpegdemo' | grep -v grep | awk '{print $2}'`
if [ -n "$pid" ]; then
	   kill -9 $pid;
fi
#./ffmpegdemo
nohup ./ffmpegdemo > /dev/null 2>&1 &
